package java8.optional.demo03;

import java8.optional.Insurance;

import java.util.Optional;

/**
 * @author ChangLiang
 * @date 2020/4/21
 */
public class Car {

    private Insurance insurance;

    public Optional<Insurance> getInsurance() {
        return Optional.ofNullable(insurance);
    }
}
